package org.product.controller.ueditory;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author zqx
 * @date 2021-01-07
 */
@WebServlet("/editor/add.do")
public class AddServlet extends HttpServlet {
    @Override
    protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        String title = req.getParameter("title") ;
        String author = req.getParameter("author") ;
        String content = req.getParameter("content") ;

        System.out.println("标题：" + title);
        System.out.println("作者：" + author);
        System.out.println("内容：" + content);
    }
}
